package com.huanbao.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 积分兑换记录表
 * </p>
 *
 * @author zq
 * @since 2021-04-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("hb_exchange_record")
public class ExchangeRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 兑换用户id
     */
    private Long userId;

    /**
     * 兑换物品id
     */
    private Long itemId;

    /**
     * 兑换物品名
     */
    private String itemName;

    /**
     * 兑换数量
     */
    private Integer number;

    /**
     * 消耗积分数
     */
    private Integer integralNumber;

    /**
     * 兑换时间
     */
    private LocalDateTime createdDt;

    /**
     * 更新时间
     */
    private LocalDateTime updatedDt;

    /**
     * 删除状态 1：是；0：否
     */
    private Integer deleted;

    /**
     * 用户电话
     */
    private String userPhone;

    /**
     * 收获地址
     */
    private String userAddress;


}
